package com.zb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjWorkLogAnnex;
import com.zb.mapper.ZjWorkLogAnnexMapper;
import com.zb.service.ZjWorkLogAnnexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 工单日志附件表 服务实现类
 * </p>
 *
 * @author WEN
 * @since 2023-09-22
 */
@Service
public class ZjWorkLogAnnexServiceImpl extends ServiceImpl<ZjWorkLogAnnexMapper, ZjWorkLogAnnex> implements ZjWorkLogAnnexService {
    @Resource
    private ZjWorkLogAnnexMapper workLogAnnexMapper;

    // 根据工单日志ID获取附件信息
    @Override
    public List<ZjWorkLogAnnex> getByWorkLogIds(List<Long> logIds) {
        if (null == logIds || logIds.isEmpty()) {
            return new ArrayList<>();
        }
        return workLogAnnexMapper.getByWorkLogIds(logIds);
    }
}
